import java.util.TimeZone;

import play.Logger;
import play.jobs.Job;
import play.jobs.OnApplicationStart;

@OnApplicationStart
public class Bootstrap extends Job {

	public void doJob() {
		String timezone = play.Play.configuration.getProperty("timezone");
		if (timezone != null) {
			TimeZone.setDefault(TimeZone.getTimeZone(timezone));
			Logger.info(TimeZone.getDefault().getDisplayName());
		}
	}
}
